package org.example.corpus.monolingual.controller.dto.kwic;

import lombok.Data;

import java.util.List;

@Data
public class KwicRequest {
    private String file;
    private String word;
    private List<Integer> leftpart;
    private List<Integer> rightpart;
    private Integer pageNum;
    private Integer pageSize;


    public Integer getPageNum() {
        return pageNum != null ? pageNum : 1; // 默认值为1
    }

    public Integer getPageSize() {
        return pageSize != null ? pageSize : 10; // 默认值为10
    }

}
